a11y: Static analysis fixes
authorMatthias Clasen <mclasen@redhat.com>
Mon, 3 May 2021 11:33:31 +0000 (07:33 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 3 May 2021 11:44:38 +0000 (07:44 -0400)
gtk/a11y/gtkatspitext.c

index 44a5605716ad52acc6aed061f4fe3a8a2027864a..338357f6d344a6013121328106c900bcffe02920 100644 (file)
@@ -1110,7 +1110,7 @@ text_view_handle_method (GDBusConnection       *connection,
     }
   else if (g_strcmp0 (method_name, "ScrollSubstringTo") == 0)
     {
-      GtkTextBuffer *buffer = buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (widget));
+      GtkTextBuffer *buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (widget));
       GtkTextIter iter;
       int start_offset = 0;
       int end_offset = 0;